//
// Created by wkm on 2023-12-06.
//

#ifndef MYSYSTEMCLEARNING_MULT_PROCS_H
#define MYSYSTEMCLEARNING_MULT_PROCS_H

#include "systemc.h"

SC_MODULE(mult_procs) {
    sc_in<bool> source;
    sc_out<bool> drain;

    sc_signal<bool> connect1, connect2;

    void mult_procs_1();

    void mult_procs_2();

    void mult_procs_3();

    SC_CTOR(mult_procs) {
        SC_METHOD(mult_procs_1);
        sensitive << source;
        SC_METHOD(mult_procs_2);
        sensitive << connect1;
        SC_METHOD(mult_procs_3);
        sensitive << connect2;
    }
};

#endif //MYSYSTEMCLEARNING_MULT_PROCS_H
